import request from '@/utils/request'

// 公告模板相关接口
export function getTemplatePage(params) {
  return request({
    url: '/announcement-templates/page',
    method: 'get',
    params
  })
}

export function createTemplate(data) {
  return request({
    url: '/announcement-templates',
    method: 'post',
    data
  })
}

export function updateTemplate(data) {
  return request({
    url: '/announcement-templates',
    method: 'put',
    data
  })
}

export function deleteTemplate(id) {
  return request({
    url: `/announcement-templates/${id}`,
    method: 'delete'
  })
} 